import request from '@/utils/request'

// 查询首页弹窗列表
export function listAppHomePopUp(query) {
  return request({
    url: '/app/appHomePopUp/list',
    method: 'get',
    params: query
  })
}

// 查询首页弹窗详细
export function getAppHomePopUp(id) {
  return request({
    url: '/app/appHomePopUp/' + id,
    method: 'get'
  })
}

// 新增首页弹窗
export function addAppHomePopUp(data) {
  return request({
    url: '/app/appHomePopUp',
    method: 'post',
    data: data
  })
}

// 修改首页弹窗
export function updateAppHomePopUp(data) {
  return request({
    url: '/app/appHomePopUp',
    method: 'put',
    data: data
  })
}

// 删除首页弹窗
export function delAppHomePopUp(id) {
  return request({
    url: '/app/appHomePopUp/' + id,
    method: 'delete'
  })
}
